package com.company.model.result;

import java.io.Serializable;
import java.util.List;

/**
 * Created by tu on 2017/7/6.
 */
public class PageResult<T> implements Serializable {

  private static final long serialVersionUID = -7196607564399524286L;

  private int pageNo;
  private int pageSize;
  private int totalPage;
  private long total;
  private List<T> content;

  public int getPageNo() {
    return pageNo;
  }

  public void setPageNo(int pageNo) {
    this.pageNo = pageNo;
  }

  public int getPageSize() {
    return pageSize;
  }

  public void setPageSize(int pageSize) {
    this.pageSize = pageSize;
  }

  public int getTotalPage() {
    return totalPage;
  }

  public void setTotalPage(int totalPage) {
    this.totalPage = totalPage;
  }

  public long getTotal() {
    return total;
  }

  public void setTotal(long total) {
    this.total = total;
  }

  public List<T> getContent() {
    return content;
  }

  public void setContent(List<T> content) {
    this.content = content;
  }

  @Override
  public String toString() {
    return "PageResult{" +
        "pageNo=" + pageNo +
        ", pageSize=" + pageSize +
        ", totalPage=" + totalPage +
        ", total=" + total +
        ", content=" + content +
        '}';
  }
}
